/*
 * AdminMapper.java
 * Copyright(C) WYY
 * All rights reserved.
 * -----------------------------------------------
 * 2019-08-26 Created
 */
package com.project.mapper.core;

import com.project.mapper.common.BaseMapper;
import com.project.model.core.Admin;

import java.util.List;

public interface AdminMapper extends BaseMapper<Admin, Long> {

    /**
     * 根据名称查询用户
     *
     * @param loginName 登录名称
     * @return
     */
    Admin getByLoginName(String loginName);

    /**
     * 及联查询用户
     *
     * @param admin 用户
     * @return
     */
    List<Admin> getAdminCascadeRole(Admin admin);
}